//
//  EntertainmentModel.m
//  ToWhere
//
//  Created by dllo on 15/11/12.
//  Copyright © 2015年 www.TE.com. All rights reserved.
//

#import "EntertainmentModel.h"

@implementation EntertainmentModel

- (void)dealloc
{
    [_ID release];
    [_name release];
    [_photos_count release];
    [_start_date release];
    [_days release];
    [_front_cover_photo_url release];
    [_user release];
    [super dealloc];
}

-(instancetype)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+(EntertainmentModel *)enterWithDictionary:(NSDictionary *)dic
{
    EntertainmentModel *enter = [[EntertainmentModel alloc]initWithDictionary:dic];
    return [enter autorelease];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqual:@"id"]) {
        self.ID = value;
    }
}

@end
